import os
import threading


def run():
    os.system("notepad")


if __name__ == '__main__':
    l = []
    # 循环创建多线程
    for i in range(5):
        t = threading.Thread(target=run)
        t.start()
        l.append(t)
    # 循环等待
    for i in l:
        i.join() # 并发执行

    print("over")

